/**
 * 任务状态
 */
{
    document.querySelectorAll('.user-task-status').forEach(function (el) {
        switch (parseInt(el.textContent)) {
            case 1 :
                el.innerHTML = '<span style="color: #FF5722">未完成</span>';
                break;
            case 2 :
                el.innerHTML = '<span style="color: #2D93CA">待审核</span>';
                break;
            case 3:
                el.innerHTML = '<span style="color: #339911">已完成</span>';
                break;
            default :
                el.innerHTML = '错误状态';
                break;
        }
    });

}

/**
 * 任务类型
 */
{
    document.querySelectorAll('.task-type').forEach(function (el) {
        switch (parseInt(el.textContent)) {
            case 101 :
                el.innerHTML = '<span style="color: #339911">微视</span>';
                break;
            case 201 :
                el.innerHTML = '<span style="color: #339911">小红书</span>';
                break;
            case 301:
                el.innerHTML = '<span style="color: #339911">快手</span>';
                break;
            case 401:
                el.innerHTML = '<span style="color: #339911">抖音</span>';
                break;
            default :
                el.innerHTML = '错误状态';
                break;
        }
    });

}

/**
 * 账户状态
 * receivable-account-status
 */
{
    document.querySelectorAll('.receivable-account-status').forEach(function (el) {
        switch (parseInt(el.textContent)) {
            case 0 :
                el.innerHTML = '<span style="color: #FF5722">禁用</span>';
                break;
            case 1:
                el.innerHTML = '<span style="color: #339911">启用</span>';
                break;
            default :
                el.innerHTML = '错误状态';
                break;
        }
    });
}